package sy.dao;

import java.io.Serializable;
import java.util.List;

import sy.model.SysUserUnitMapping;

public interface SysUserUnitMappingDaoI {
	
	Serializable save(SysUserUnitMapping sysUserUnitMapping);
	
	void remove(SysUserUnitMapping sysUserUnitMapping);
	
	void update(SysUserUnitMapping sysUserUnitMapping);
	
	List<SysUserUnitMapping> list();
	
	SysUserUnitMapping getSysUserUnitMappingById(String id);
	
	List<SysUserUnitMapping> listSysUserUnitMappingByKey(String key);
	
	List<SysUserUnitMapping> listSysUserUnitMappingByOwnerId(String ownerId);
	
	Serializable saveSysUserUnitMappings(List<SysUserUnitMapping> sysUserUnitMapping);
	
	void removeByUser(String userId);

}
